package com.maya.medicalwastes.util;

import com.maya.medicalwastes.App;
import com.maya.medicalwastes.entity.KeyBean;

import java.util.List;

/**
 * @author created by fuguoyong
 * 版本：1.0
 * 创建日期：2020-12-03 10
 * 描述：SearchType
 */
public class SearchType {


    public static String getWareType(String type){

        List<KeyBean> mWareType = App.getInstance().getWareType();
if (mWareType.size()>0){
    for (KeyBean bean :mWareType) {
        if (bean.getKey().equals(type)){
            return bean.getValue();
        }
    }
}
        return type;
    }
}
